home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / rettig.arc / TRSOURCE.EXE / HTOSS.C < prev    next >
C/C++ Source or Header  |  1990-10-22  |  361b  |  19 lines

  1. /*********
  2. *  HTOSS 
  3. *  by Tom Rettig
  4. * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  5. *
  6. *  Syntax: HTOSS( <expN> )
  7. *  Return: Numeric seconds from <expN> hours.
  8. *********/
  9.  
  10. #include "trlib.h"
  11.  
  12. TRTYPE htoss()
  13. {
  14.    if ( PCOUNT == 1 && ISNUM(1) )
  15.       _retnl( (long)(_parnd(1)*3600) );
  16.    else
  17.       _retnl( (long)ERROR );
  18. }
  19.